<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=<<device-width>>, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>luoyi</title>
	<link rel="stylesheet" href="css/bootstrap2.min.css">

		
	<style>
		
		.panel-body,nav{
			display: flex;
			justify-content: center
		}
		.aa{
			width: 20px;
			height: 20px;
		}
	</style>
</head>

<body>

	<div class="container-fluid">


		<div class="jumbotron jumbotron-fluid text-center">
			<div class="container">
				<h1 class="display-3">婚纱管理员终端</h1>
				<hr class="my-2">

			</div>
		</div>

		<table class="table table-bordered table-hover text-center mt-3">
			<thead class="thead-dark">
				<tr>
					<th scope="col">序号</th>
					<th scope="col">名字</th>
					<th scope="col">电话</th>
					<th scope="col">留言</th>
					<th scope="col">操作</th>
				</tr>
			</thead>
			<c:forEach items="${infos}" var="i">
				<tr>
					<td>${i.id}</td>
					<td>${i.name}</td>
					<td>${i.phone}</td>
					<td>${i.message}</td>
					<td><a href="info?m=del&id=${i.id}" onclick="return confirm('是否删除')"> <span aria-hidden="true"><img class="aa" src="img/shanchu.png"/></a></span> <a
							href="update.jsp?id=${i.id}"><span aria-hidden="true"></span><img class="aa" src="img/shezhi.png"/></a></td>
				</tr>
			</c:forEach>
		</table>

		<nav aria-label="Page navigation">
			<ul class="pagination">
				<li class="page-item"><a href="info?page=1" class="page-link"> <span aria-hidden="true">&laquo;</span>
					<span class="sr-only">Previous</span></a></li>
				<c:forEach begin="${pb.beginNum}" end="${pb.endNum}" varStatus="k">
					<li class="page-item"><a href="info?page=${k.index}" class="page-link ">${k.index}</a></li>
				</c:forEach>
				<li class="page-item"><a href="info?page=${pb.totalPage}" class="page-link">
						<span aria-hidden="true">&raquo;</span>
						<span class="sr-only">Next</span>
					</a></li>
			</ul>
		</nav>

	</div>

</body>

</html>